package com.yzt.zhuju.arouter;

import androidx.fragment.app.Fragment;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * author : bob
 * date   : 2022/11/29
 * desc   :
 */
public class RouterMine {

    //我的
    public static final String FRAGMENT_MINE = "/mine/MineFragment";

    //钱包
    public static final String ACTIVITY_WALLET = "/mine/WalletActivity";

    //钻石充值
    public static final String ACTIVITY_RECHARGE_DIAMOND = "/mine/DiamondRechargeActivity";

    //激励视频
    public static final String ACTIVITY_WATCH_VIDEO = "/mine/WatchVideoActivity";

    //视频播放
    public static final String ACTIVITY_VIDEO_PLAY = "/mine/VideoPlayActivity";

    //账号安全
    public static final String ACTIVITY_ACCOUNT_SECURITY_ACTIVITY = "/settings/AccountSecurityActivity";

    //设置页面
    public static final String ACTIVITY_SETTING = "/setting/SettingActivity";

    //聊天室设置
    public static final String ACTIVITY_CHAT_SETTING = "/setting/ChatSettingActivity";

    // 意见反馈
    public static final String ACTIVITY_FEED_BACK = "/settings/FeedbackActivity";

    /**
     * 意见反馈
     */
    public static void FeedbackActivity() {
        ARouter.getInstance().build(ACTIVITY_FEED_BACK).navigation();
    }

    /**
     * 视频播放
     */
    public static void VideoPlayActivity(String type, String path) {
        ARouter.getInstance().build(ACTIVITY_VIDEO_PLAY).withString("status", type).withString("mFileUrlPath", path).navigation();
    }

    /**
     * 激励视频
     */
    public static void WatchVideoActivity() {
        ARouter.getInstance().build(ACTIVITY_WATCH_VIDEO).navigation();
    }

    /**
     * 主页我的页面
     */
    public static Fragment MineFragment() {
        return (Fragment) ARouter.getInstance().build(FRAGMENT_MINE).navigation();
    }

    /**
     * 账号安全
     */
    public static void AccountSecurityActivity() {
        ARouter.getInstance().build(ACTIVITY_ACCOUNT_SECURITY_ACTIVITY).navigation();
    }
}
